'use strict';

const BaseController = require('../sys/base');

class LogsController extends BaseController {

  async list() {
    const { ctx } = this;
    const result = await ctx.service.videos.logs.list(ctx.request.query);
    this.success(result);
  }

  async logsClear() {
    const { ctx } = this;
    const result = await ctx.service.videos.logs.logsClear(ctx.request.query);
    this.success(result);
  }

  async unusual() {
    const { ctx } = this;
    const result = await ctx.service.videos.logs.unusual(ctx.request.query);
    this.success(result);
  }

  async unusualClear() {
    const { ctx } = this;
    const result = await ctx.service.videos.logs.unusualClear(ctx.request.query);
    this.success(result);
  }


  async monitorTypes() {
    const { ctx } = this;
    const result = await ctx.service.videos.logs.types();
    this.success(result);
  }

  async mocking() {
    const { ctx } = this;
    const result = await ctx.service.videos.logs.mocking(ctx.request.body);
    this.success(result);
  }

}

module.exports = LogsController;
